package com.net.xpay.common.manager.invoice;

import com.net.xpay.common.domain.invoice.DeliveryAddress;
import com.net.common.manager.DomainManager;

import java.util.List;


public interface DeliveryAddressManager extends DomainManager<Long, DeliveryAddress> {
    DeliveryAddress findById(Long userId, Long id);

    List<DeliveryAddress> listByUserId(Long userId);

    /**
     * 设置用户的所有邮寄地址为非默认地址
     */
    int updateDeliveryAddressTypeAsNonDefault(Long userId);
}
